import request from '@/utils/request'

// 查询工作流节点权限列表
export function listFlowAuth(query) {
  return request({
    url: '/flow/flowAuth/list',
    method: 'get',
    params: query
  })
}

// 查询工作流节点权限详细
export function getFlowAuth(id) {
  return request({
    url: '/flow/flowAuth/' + id,
    method: 'get'
  })
}

// 新增工作流节点权限
export function addFlowAuth(data) {
  return request({
    url: '/flow/flowAuth',
    method: 'post',
    data: data
  })
}

// 修改工作流节点权限
export function updateFlowAuth(data) {
  return request({
    url: '/flow/flowAuth',
    method: 'put',
    data: data
  })
}

// 删除工作流节点权限
export function delFlowAuth(id) {
  return request({
    url: '/flow/flowAuth/' + id,
    method: 'delete'
  })
}
